home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4042 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: doc.ic.ac.uk!not-for-mail
  2. From: mdf@doc.ic.ac.uk (Martin Frost)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: MsgPorts and lists
  5. Date: 16 Feb 1996 16:51:06 -0000
  6. Organization: Dept. of Computing, Imperial College, University of London, UK.
  7. Distribution: world
  8. Message-ID: <4g2clq$1n1@oak73.doc.ic.ac.uk>
  9. References: <1527.6618T48T2102@amiga.pp.se> <31227335.0@eden.adam.com.au>
  10. Reply-To: mdf@doc.ic.ac.uk (Martin Frost)
  11. NNTP-Posting-Host: oak73.doc.ic.ac.uk
  12. X-Newsreader: mxrn 6.18-23
  13.  
  14.  
  15. In article <31227335.0@eden.adam.com.au>, yeti@adam.com.au (jonathan potter) writes:
  16. >You can do what you like with your message list, but if you are adding or 
  17. >removing to it other than through GetMsg() and PutMsg(), you must call 
  18. >Forbid() first.
  19.  ^^^^^^^^
  20.  
  21. It needs to be Disable(), since PutMsg is sometimes called from interrupts
  22. (certainly for IORequests; I dunno about Intuition)
  23.  
  24. >If you must add a message to the head of a queue, call 
  25. >Forbid() and then AddHead().
  26.  ^^^^^^^^
  27.  
  28. This also needs to be Disable()
  29.  
  30. Martin
  31.